package com.minchat.sys.service.impl;

import com.minchat.sys.dao.MessageDao;
import com.minchat.sys.model.Message;
import com.minchat.sys.service.MessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MessageServiceImpl implements MessageService {
    @Resource
    private MessageDao messageDao;

    public List<Message> queryMessageByKeyword(String keyword) {
        return this.messageDao.queryMessageByKeyword(keyword);
    }

    public List<Message> queryMessageDictByKeyword() {
        return this.messageDao.queryMessageDictByKeyword();;
    }

}